export class ProtoIDs {
    static loginMsgID = {
        pbname: "protobuf",
        HEART: 2,
        C2S_Login: 1001,
        S2C_Login: 1002,
    }

    static getMap(): any {
        let protoIDs = {}
        for (let key in ProtoIDs.loginMsgID) {
            // console.log(index)
            const element = ProtoIDs.loginMsgID[key];
            if (typeof (element) == "number") {
                // console.log(element)
                protoIDs[element] = { req: { pName: ProtoIDs.loginMsgID.pbname ,mName:key}, res: {pName:ProtoIDs.loginMsgID.pbname, mName: key } };
            }
        }

        return  protoIDs;
    }

}